<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户登录</title>
    <style>
        *{
            margin: 20px auto;
        }
        .div_main{
            {#background: url("/static/netdisk/images/bg1.jpg") no-repeat;#}
            width: 960px;
            height: 700px;
        }
        #header{
            height: 50px;
        }
        #header h1{
            text-align: center;
        }
        #div_login{
            width: 350px;
            height: 250px;
            margin: 80px auto;
        }
        form input,form img{
            margin: 10px 75px;
        }
        form #check_auto{
            margin: 10px 0px 10px 75px;
        }
    </style>
</head>
<body>
<div class="div_main">
    <div id="header">
        <p><h1>账号密码登录</h1></p>
    </div>
    <hr/>

    <div id="div_login">
        <form action="/netdisk/loginhandle/" method="post">
            {% csrf_token %}
            <input type="text" name="uname"><br/>
            <input type="password" name="upasswd"><br/>
            <img src="{% url 'netdisk:gen_captcha' %}" name="captcha"><br/>
            <input id="check_auto" type="checkbox" name="ulasttime" checked>自动登录<br/>
            <input id="commit" type="submit" value="提交"><br/>
        </form>
    </div>
</div>

</body>
</html>